package com.book.app.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.book.app.dao.BookDao;
import com.book.app.dao.CategoryDao;
import com.book.app.entity.Category;
import com.book.app.service.CategoryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * (Category)表服务实现类
 *
 * @author wjy
 * @since 2021-09-22 08:48:13
 */
@Service("categoryService")
public class CategoryServiceImpl extends ServiceImpl<CategoryDao, Category> implements CategoryService {

    @Resource
    private CategoryDao categoryDao;
    @Override
    public Integer findIdByName(String catename) {
        return categoryDao.findIdByName(catename);
    }

    @Override
    public List<Category> getCateBook() {
        return categoryDao.getCateBook();
    }
}

